Statistics
| Branch: | Revision:

iof-tools / networkxMiCe / networkx-master / doc / release / report_functions_without_rst_generated.py @ 5cef0f13

History | View | Annotate | Download (991 Bytes)

1
import os
2
import inspect
3
import networkx as nx
4

    
5
print("Run this script from the doc/ directory of the repository")
6
funcs = inspect.getmembers(nx, inspect.isfunction)
7

    
8
for n,f in funcs:
9
    #print(n + ": "+str(f))
10
    cmd = "find . -name *\."+n+".rst -print"
11
    #print(cmd)
12
    result=os.popen(cmd).read()
13
    #print(result)
14

    
15
    old_names = ('find_cores',
16
                 'test',
17
                 'edge_betweenness',
18
                 'betweenness_centrality_source',
19
                 'write_graphml_lxml',
20
                 'write_graphml_xml',
21
                 'adj_matrix',
22
                 'project',
23
                 'fruchterman_reingold_layout',
24
                 'node_degree_xy',
25
                 'node_attribute_xy',
26
                 'find_cliques_recursive',
27
                 'recursive_simple_cycles',
28
                 )
29

    
30
    if len(result) == 0 and n not in old_names:
31
        print("Missing file from docs:  ", n)
32

    
33
print("Done finding functions that are missing from the docs")