Make graph Clone.

This commit is contained in:
James Pace 2026-07-19 19:55:53 -04:00
parent 93c06bc60c
commit 2d05aed057
1 changed files with 1 additions and 0 deletions

View File

@ -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>>,
} }