Make graph Clone.
This commit is contained in:
parent
93c06bc60c
commit
2d05aed057
|
|
@ -21,6 +21,7 @@ pub use node::*;
|
||||||
|
|
||||||
/// A generic graph type holding values connected to other values.
|
/// A generic graph type holding values connected to other values.
|
||||||
/// Values can be added to the graph, but not removed.
|
/// Values can be added to the graph, but not removed.
|
||||||
|
#[derive(Clone)]
|
||||||
pub struct Graph<NodeValueT: NodeValue> {
|
pub struct Graph<NodeValueT: NodeValue> {
|
||||||
nodes: Vec<Node<NodeValueT>>,
|
nodes: Vec<Node<NodeValueT>>,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue