pub struct Subgraph {
pub name: String,
/* private fields */
}Expand description
Graph’s subgraph
Fields§
§name: StringImplementations§
Source§impl Subgraph
impl Subgraph
pub fn new(name: &str) -> Self
pub fn add_node(&mut self, node: Node)
pub fn add_nodes(&mut self, nodes: Vec<Node>)
pub fn add_edge(&mut self, edge: Edge)
pub fn label(&self, label: &str) -> Self
pub fn style(&self, style: Style) -> Self
pub fn color(&self, color: Option<&str>) -> Self
pub fn edgeop(&self, edgeop: &str) -> Self
pub fn to_dot_string(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Subgraph
impl RefUnwindSafe for Subgraph
impl Send for Subgraph
impl Sync for Subgraph
impl Unpin for Subgraph
impl UnwindSafe for Subgraph
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