Graph¶
Overview¶
Methods¶
Adding and removing nodes and edges¶
|
Initialize a directed graph. |
|
Add a single node to graph, with optional attributes. |
|
Add a single edge with custom attributes to graph |
|
Remove node and incident edges from graph |
|
Remove the edge linking source to target, with the given edge_type |
Accessing nodes, edges and neighbors¶
|
Get node from key |
|
Get edge from source, target and edge type |
|
Get node or edge |
|
Create/update node with custom attributes |
Iterate over all nodes |
|
Iterate over all edges |
|
|
Returns True if node exists |
|
Returns True if (source, target[, edge_type]) exists |
|
Get a batch of nodes starting from a given table position |
|
Get a batch of edges starting from a given table position |
|
Returns True if node or edge exists |
Iterate over all nodes v such that (u, v) is an edge |
|
Iterate over all nodes u such that (u, v) is an edge |
|
|
Strictly assign predecessors to a node |
|
Strictly assign predecessors to a node |
|
Returns the list of neighbors for all given nodes |
|
Returns the list of predecessors for all given nodes |
|
Returns the set of common neighbors between two nodes |
Returns the set of common predecessors between two nodes |
|
Closes database file. |
Linear Algebra¶
|
Return adjacency matrix of the graph |
|
Return adjacency matrix of a subgraph |