Skip to content

Commit

Permalink
Graphs can now be cloned
Browse files Browse the repository at this point in the history
  • Loading branch information
octavonce committed Mar 14, 2019
1 parent 2ba0c0a commit f47aad5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "graphlib"
version = "0.1.0"
version = "0.1.1"
authors = ["Octavian Oncescu <octavonce@gmail.com>"]
edition = "2018"
repository = "https://github.com/purpleprotocol/graphlib"
Expand Down
2 changes: 1 addition & 1 deletion src/edge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use crate::vertex_id::VertexId;
use std::sync::Arc;

#[derive(Debug)]
#[derive(Clone, Debug)]
pub struct Edge {
inbound: Arc<VertexId>,
outbound: Arc<VertexId>,
Expand Down
2 changes: 1 addition & 1 deletion src/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub enum GraphErr {
CannotAddEdge
}

#[derive(Debug)]
#[derive(Clone, Debug)]
pub struct Graph<T> {
vertices: HashMap<Arc<VertexId>, (T, Arc<VertexId>)>,
edges: Vec<Edge>,
Expand Down

0 comments on commit f47aad5

Please sign in to comment.