Trait graphs_tools::abs::graph::prelude::GraphEdgesExtendableInterface
source · [−]pub trait GraphEdgesExtendableInterface where
Self: GraphNodesNominalInterface + GraphEdgesNominalInterface + GraphNodesExtendableInterface, {
fn _edge_id_generate(
&mut self,
node1: <<Self as GraphNodesNominalInterface>::NodeHandle as HasId>::Id,
node2: <<Self as GraphNodesNominalInterface>::NodeHandle as HasId>::Id
) -> <<Self as GraphEdgesNominalInterface>::EdgeHandle as HasId>::Id;
fn _edge_add(
&mut self,
edge_id: <<Self as GraphEdgesNominalInterface>::EdgeHandle as HasId>::Id,
node1: <<Self as GraphNodesNominalInterface>::NodeHandle as HasId>::Id,
node2: <<Self as GraphNodesNominalInterface>::NodeHandle as HasId>::Id
);
fn _edge_make_for_nodes<IntoNodeId1, IntoNodeId2>(
&mut self,
node1: IntoNodeId1,
node2: IntoNodeId2
) -> <<Self as GraphEdgesNominalInterface>::EdgeHandle as HasId>::Id
where
IntoNodeId1: Into<<<Self as GraphNodesNominalInterface>::NodeHandle as HasId>::Id>,
IntoNodeId2: Into<<<Self as GraphNodesNominalInterface>::NodeHandle as HasId>::Id>,
{ ... }
}
Expand description
Graph interface which allow to add more edges.
Required Methods
fn _edge_id_generate(
&mut self,
node1: <<Self as GraphNodesNominalInterface>::NodeHandle as HasId>::Id,
node2: <<Self as GraphNodesNominalInterface>::NodeHandle as HasId>::Id
) -> <<Self as GraphEdgesNominalInterface>::EdgeHandle as HasId>::Id
fn _edge_id_generate(
&mut self,
node1: <<Self as GraphNodesNominalInterface>::NodeHandle as HasId>::Id,
node2: <<Self as GraphNodesNominalInterface>::NodeHandle as HasId>::Id
) -> <<Self as GraphEdgesNominalInterface>::EdgeHandle as HasId>::Id
Either make new or get existing edge for specified nodes.
fn _edge_add(
&mut self,
edge_id: <<Self as GraphEdgesNominalInterface>::EdgeHandle as HasId>::Id,
node1: <<Self as GraphNodesNominalInterface>::NodeHandle as HasId>::Id,
node2: <<Self as GraphNodesNominalInterface>::NodeHandle as HasId>::Id
)
fn _edge_add(
&mut self,
edge_id: <<Self as GraphEdgesNominalInterface>::EdgeHandle as HasId>::Id,
node1: <<Self as GraphNodesNominalInterface>::NodeHandle as HasId>::Id,
node2: <<Self as GraphNodesNominalInterface>::NodeHandle as HasId>::Id
)
Either make new or get existing edge for specified nodes.
Provided Methods
fn _edge_make_for_nodes<IntoNodeId1, IntoNodeId2>(
&mut self,
node1: IntoNodeId1,
node2: IntoNodeId2
) -> <<Self as GraphEdgesNominalInterface>::EdgeHandle as HasId>::Id where
IntoNodeId1: Into<<<Self as GraphNodesNominalInterface>::NodeHandle as HasId>::Id>,
IntoNodeId2: Into<<<Self as GraphNodesNominalInterface>::NodeHandle as HasId>::Id>,
fn _edge_make_for_nodes<IntoNodeId1, IntoNodeId2>(
&mut self,
node1: IntoNodeId1,
node2: IntoNodeId2
) -> <<Self as GraphEdgesNominalInterface>::EdgeHandle as HasId>::Id where
IntoNodeId1: Into<<<Self as GraphNodesNominalInterface>::NodeHandle as HasId>::Id>,
IntoNodeId2: Into<<<Self as GraphNodesNominalInterface>::NodeHandle as HasId>::Id>,
Either make new or get existing edge for specified nodes.