proxygen
|
Public Member Functions | |
def | __init__ (self) |
def | neighbors (self, node) |
def | edges (self) |
def | nodes (self) |
def | attributes (self, node1, node2) |
def | add_edge (self, node1, node2, kwargs) |
def | remove_node (self, node) |
def | subgraph (self, nodes) |
def | node_link_data (self) |
Public Attributes | |
adjacency_map | |
attributes_map | |
Adapted from networkx: http://networkx.github.io/ Represents a directed graph. Edges can store (key, value) attributes.
Definition at line 9 of file deadlock.py.
def deadlock.DiGraph.__init__ | ( | self | ) |
Definition at line 15 of file deadlock.py.
def deadlock.DiGraph.add_edge | ( | self, | |
node1, | |||
node2, | |||
kwargs | |||
) |
Definition at line 38 of file deadlock.py.
References add, deadlock.DiGraph.adjacency_map, and deadlock.DiGraph.attributes_map.
def deadlock.DiGraph.attributes | ( | self, | |
node1, | |||
node2 | |||
) |
def deadlock.DiGraph.edges | ( | self | ) |
Definition at line 25 of file deadlock.py.
def deadlock.DiGraph.neighbors | ( | self, | |
node | |||
) |
Definition at line 22 of file deadlock.py.
Referenced by deadlock.DiGraph.subgraph().
def deadlock.DiGraph.node_link_data | ( | self | ) |
Returns the graph as a dictionary in a format that can be serialized.
Definition at line 59 of file deadlock.py.
References append(), deadlock.DiGraph.attributes_map, and folly.copy().
def deadlock.DiGraph.nodes | ( | self | ) |
Definition at line 32 of file deadlock.py.
def deadlock.DiGraph.remove_node | ( | self, | |
node | |||
) |
Definition at line 46 of file deadlock.py.
def deadlock.DiGraph.subgraph | ( | self, | |
nodes | |||
) |
Definition at line 51 of file deadlock.py.
References deadlock.DiGraph.neighbors().
deadlock.DiGraph.adjacency_map |
Definition at line 17 of file deadlock.py.
Referenced by deadlock.DiGraph.add_edge().
deadlock.DiGraph.attributes_map |
Definition at line 20 of file deadlock.py.
Referenced by deadlock.DiGraph.add_edge(), deadlock.DiGraph.attributes(), and deadlock.DiGraph.node_link_data().