pub struct GraphWithData {
pub data: GraphDataMap,
pub graph: RewriteGraph,
}Expand description
A graph with all its data
Fields§
§data: GraphDataMap§graph: RewriteGraphImplementations§
Source§impl GraphWithData
impl GraphWithData
Sourcepub fn from_arrow_list(q: Quiver) -> Self
pub fn from_arrow_list(q: Quiver) -> Self
Construct a graph from a quiver of arrows.
Sourcepub fn dot<'a>(&'a self) -> Dot<'a, &'a Graph<String, String>>
pub fn dot<'a>(&'a self) -> Dot<'a, &'a Graph<String, String>>
Get a graphviz representation of this graph
pub fn find_cycles<'a>(&'a self) -> Vec<Cycle<'a>>
pub fn has_cycles(&self) -> bool
Sourcepub fn find_transformations(&self) -> Vec<Arrow>
pub fn find_transformations(&self) -> Vec<Arrow>
Find transformations to apply
Auto Trait Implementations§
impl Freeze for GraphWithData
impl RefUnwindSafe for GraphWithData
impl Send for GraphWithData
impl Sync for GraphWithData
impl Unpin for GraphWithData
impl UnsafeUnpin for GraphWithData
impl UnwindSafe for GraphWithData
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> 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