otx.api.entities.interfaces.graph_interface#
This module implements the Graph interface.
Classes
|
This interface describes how the interface of the Graph looks like. |
- class otx.api.entities.interfaces.graph_interface.IGraph[source]#
Bases:
object
This interface describes how the interface of the Graph looks like.
This interface is used to represent the TaskGraph inside project as well as the label tree inside LabelSchema
- abstract has_edge_between(node1, node2)[source]#
Returns whether there is an edge between node1 and node2.
- abstract property edges: OutMultiEdgeView#
Returns the edges in the Graph.
- abstract property nodes: NodeView#
Return nodes in the graph.