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