pub struct PipelineGraph {
pub name: String,
pub graph_attrs: GraphAttrs,
pub graph: DiGraph<PipelineNode, PipelineEdge>,
pub node_index: HashMap<String, NodeIndex>,
pub start_node: NodeIndex,
pub exit_node: NodeIndex,
}Expand description
The internal pipeline graph built from a parsed DOT file.
Fields§
§name: String§graph_attrs: GraphAttrs§graph: DiGraph<PipelineNode, PipelineEdge>§node_index: HashMap<String, NodeIndex>§start_node: NodeIndex§exit_node: NodeIndexImplementations§
Source§impl PipelineGraph
impl PipelineGraph
Sourcepub fn node(&self, id: &str) -> Option<&PipelineNode>
pub fn node(&self, id: &str) -> Option<&PipelineNode>
Get a node by its string ID.
Sourcepub fn outgoing_edges(&self, idx: NodeIndex) -> Vec<(NodeIndex, &PipelineEdge)>
pub fn outgoing_edges(&self, idx: NodeIndex) -> Vec<(NodeIndex, &PipelineEdge)>
Get all outgoing edges from a node.
Sourcepub fn topo_order(&self) -> Result<Vec<NodeIndex>>
pub fn topo_order(&self) -> Result<Vec<NodeIndex>>
Get the node IDs in topological order.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PipelineGraph
impl RefUnwindSafe for PipelineGraph
impl Send for PipelineGraph
impl Sync for PipelineGraph
impl Unpin for PipelineGraph
impl UnsafeUnpin for PipelineGraph
impl UnwindSafe for PipelineGraph
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more