Make graph Clone.

This commit is contained in:
jimmy committed 2026-07-19 19:55:53 -04:00
1 parent 93c06bc60c
commit 2d05aed057
1 file changed
+1
+1
View File
@@ -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>>,
}