pub struct DotGraphInput<NI, Label>{ /* private fields */ }dotgraph only.Expand description
DotGraph (the name is based on the file ending .graph) is a textual
description of a node labeled graph primarily used as input for subgraph
isomorphism libraries. It has been introduced
here and is also
supported by the
subgraph-matching crate.
A graph starts with ‘t N M’ where N is the number of nodes and M is the
number of edges. A node and an edge are formatted as ‘v nodeId labelId
degree’ and ‘e nodeId nodeId’ respectively. Note that the format requires
that the node id starts at 0 and the range is 0..N.
§Example
The following graph contains 5 nodes and 6 relationships. The first line
contains that meta information. The following 5 lines contain one node
description per line, e.g., v 0 0 2 translates to node 0 with label 0
and a degree of 2. Following the nodes, the remaining lines describe
edges, e.g., e 0 1 represents an edge connecting nodes 0 and 1.
> cat my_graph.graph
t 5 6
v 0 0 2
v 1 1 3
v 2 2 3
v 3 1 2
v 4 2 2
e 0 1
e 0 2
e 1 2
e 1 3
e 2 4
e 3 4Trait Implementations§
Source§impl<NI, Label> Default for DotGraphInput<NI, Label>
impl<NI, Label> Default for DotGraphInput<NI, Label>
Source§impl<NI: Idx, Label: Idx> InputCapabilities<NI> for DotGraphInput<NI, Label>
impl<NI: Idx, Label: Idx> InputCapabilities<NI> for DotGraphInput<NI, Label>
type GraphInput = DotGraph<NI, Label>
Auto Trait Implementations§
impl<NI, Label> Freeze for DotGraphInput<NI, Label>
impl<NI, Label> RefUnwindSafe for DotGraphInput<NI, Label>where
NI: RefUnwindSafe,
Label: RefUnwindSafe,
impl<NI, Label> Send for DotGraphInput<NI, Label>
impl<NI, Label> Sync for DotGraphInput<NI, Label>
impl<NI, Label> Unpin for DotGraphInput<NI, Label>
impl<NI, Label> UnsafeUnpin for DotGraphInput<NI, Label>
impl<NI, Label> UnwindSafe for DotGraphInput<NI, Label>where
NI: UnwindSafe,
Label: UnwindSafe,
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
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>
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>
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