Graph Functions#
# DOC: adapt doc
Algorithms for Symmetric Overlaps Graph.
Functions:
|
Return the degree of vertex. |
|
Return the in-degree of vertex. |
|
Return the out-degree of vertex. |
- degree(graph, vertex)#
Return the degree of vertex.
- Parameters:
graph (
RevSymGraph
orMergedStrandsRevSymGraph
) – Reverse symmetric graphvertex (
IndOrT
) – Oriented vertex
- Returns:
Degree
- Return type:
- Raises:
NoVertexIndex – If vertex does not exist in graph
- in_degree(graph, vertex)#
Return the in-degree of vertex.
- Parameters:
graph (
RevSymGraph
orMergedStrandsRevSymGraph
) – Reverse symmetric graphvertex (
IndOrT
) – Oriented vertex
- Returns:
In-degree
- Return type:
- Raises:
NoVertexIndex – If vertex does not exist in graph
- out_degree(graph, vertex)#
Return the out-degree of vertex.
- Parameters:
graph (
RevSymGraph
orMergedStrandsRevSymGraph
) – Reverse symmetric graphvertex (
IndOrT
) – Oriented vertex
- Returns:
Out-degree
- Return type:
- Raises:
NoVertexIndex – If vertex does not exist in graph