Upgraded petgraph, hash for traces
This commit is contained in:
@ -7,5 +7,5 @@ edition = "2024"
|
|||||||
rand = { version = "*" }
|
rand = { version = "*" }
|
||||||
rsprocess = { path = "../rsprocess/" }
|
rsprocess = { path = "../rsprocess/" }
|
||||||
serde = { version = ">=1"}
|
serde = { version = ">=1"}
|
||||||
petgraph = { version = "*", features = ["serde-1"] }
|
petgraph = { version = ">=0.8", features = ["serde-1"] }
|
||||||
petgraph-graphml = { version = "*" }
|
petgraph-graphml = { version = "*" }
|
||||||
|
|||||||
@ -4,4 +4,4 @@ version = "0.1.0"
|
|||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
petgraph = { version = "0.8", features = ["serde-1"] }
|
petgraph = { version = ">=0.8", features = ["serde-1"] }
|
||||||
|
|||||||
@ -8,6 +8,6 @@ rsprocess = { path = "../rsprocess/" }
|
|||||||
assert = { path = "../assert/" }
|
assert = { path = "../assert/" }
|
||||||
bisimilarity = { path = "../bisimilarity/" }
|
bisimilarity = { path = "../bisimilarity/" }
|
||||||
colored = { version = "*" }
|
colored = { version = "*" }
|
||||||
petgraph = { version = "0.8", features = ["serde-1"] }
|
petgraph = { version = ">=0.8", features = ["serde-1"] }
|
||||||
petgraph-graphml = { version = "*" }
|
petgraph-graphml = { version = "*" }
|
||||||
lalrpop-util = { version = "*", features = ["lexer", "unicode"] }
|
lalrpop-util = { version = "*", features = ["lexer", "unicode"] }
|
||||||
|
|||||||
@ -4,7 +4,7 @@ version = "0.1.0"
|
|||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
petgraph = { version = "*", features = ["serde-1"] }
|
petgraph = { version = ">=0.8", features = ["serde-1"] }
|
||||||
petgraph-graphml = { version = "*" }
|
petgraph-graphml = { version = "*" }
|
||||||
serde = { version = "*", features = ["derive", "rc"] }
|
serde = { version = "*", features = ["derive", "rc"] }
|
||||||
serde_cbor_2 = { version = "*" }
|
serde_cbor_2 = { version = "*" }
|
||||||
|
|||||||
@ -80,7 +80,7 @@ impl<L, Sys, I: SliceIndex<[TraceElement<L, Sys>]>> IndexMut<I>
|
|||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
// Slicing Trace
|
// Slicing Trace
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
#[derive(Clone, Default)]
|
#[derive(Clone, Default, Hash)]
|
||||||
pub struct SlicingElement<S> {
|
pub struct SlicingElement<S> {
|
||||||
pub context: S,
|
pub context: S,
|
||||||
pub reaction_products: S,
|
pub reaction_products: S,
|
||||||
@ -130,7 +130,7 @@ where
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug)]
|
#[derive(Clone, Default, Debug, Hash)]
|
||||||
pub struct EnabledReactions {
|
pub struct EnabledReactions {
|
||||||
pub data: Vec<usize>,
|
pub data: Vec<usize>,
|
||||||
}
|
}
|
||||||
@ -190,7 +190,7 @@ impl EnabledReactions {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone, Debug, Hash)]
|
||||||
pub struct SlicingTrace<
|
pub struct SlicingTrace<
|
||||||
S: BasicSet,
|
S: BasicSet,
|
||||||
R: BasicReaction<Set = S>,
|
R: BasicReaction<Set = S>,
|
||||||
|
|||||||
Reference in New Issue
Block a user