biocypher._create.BioCypherRelAsNode
- class biocypher._create.BioCypherRelAsNode(node: BioCypherNode, source_edge: BioCypherEdge, target_edge: BioCypherEdge)
Class to represent relationships as nodes (with in- and outgoing edges) as a triplet of a BioCypherNode and two BioCypherEdges. Main usage in type checking (instances where the receiving function needs to check whether it receives a relationship as a single edge or as a triplet).
- Parameters:
node (BioCypherNode) – node representing the relationship
source_edge (BioCypherEdge) – edge representing the source of the relationship
target_edge (BioCypherEdge) – edge representing the target of the relationship
- __init__(node: BioCypherNode, source_edge: BioCypherEdge, target_edge: BioCypherEdge) None
Methods
__init__
(node, source_edge, target_edge)get_node
()get_source_edge
()get_target_edge
()Attributes
node
source_edge
target_edge