Lines Matching full:graph
3 # Simple graph query utility
29 graph = networkx.DiGraph(networkx.nx_pydot.read_dot(dotfile))
32 close_matches = difflib.get_close_matches(node, graph.nodes(), cutoff=0.7)
34 … print('ERROR: no node "%s" in graph. Close matches:\n %s' % (node, '\n '.join(close_matches)))
37 if not fromnode in graph:
39 if not tonode in graph:
41 return networkx.all_simple_paths(graph, source=fromnode, target=tonode)
49 print("ERROR: no path from %s to %s in graph" % (args.fromnode, args.tonode))
88 … parser = argparse_oe.ArgumentParser(description='Small utility for working with .dot graph files')
94 … help='Find all of the paths between two nodes in a dot graph',
95 … description='Finds all of the paths between two nodes in a dot graph')
96 parser_find_paths.add_argument('dotfile', help='.dot graph to search in')
102 … help='Pare down a task graph to contain only the specified references',
103 …description='Pares down a task-depends.dot graph produced by bitbake -g to contain only the specif…