Function node_from_label

Source
pub fn node_from_label(
    graph: &Graph<String, u8>,
    label: &str,
) -> Option<NodeIndex>
Expand description

Find a node by label.

§Arguments

  • graph - The graph to search.
  • label - The label to search for.

§Return

The node index with the given label, or None if not found.