@@ -13,8 +13,8 @@ use problemreductions::models::algebraic::{
1313} ;
1414use problemreductions:: models:: formula:: Quantifier ;
1515use problemreductions:: models:: graph:: {
16- DisjointConnectingPaths , GeneralizedHex , GraphPartitioning , HamiltonianCircuit ,
17- HamiltonianPath , IntegralFlowBundles , LengthBoundedDisjointPaths , LongestCircuit , LongestPath ,
16+ DisjointConnectingPaths , GeneralizedHex , HamiltonianCircuit , HamiltonianPath ,
17+ IntegralFlowBundles , LengthBoundedDisjointPaths , LongestCircuit , LongestPath ,
1818 MinimumCutIntoBoundedSets , MinimumDummyActivitiesPert , MinimumMultiwayCut , MixedChinesePostman ,
1919 MultipleChoiceBranching , PathConstrainedNetworkFlow , RootedTreeArrangement , SteinerTree ,
2020 SteinerTreeInGraphs , StrongConnectivityAugmentation ,
@@ -537,7 +537,6 @@ fn example_for(canonical: &str, graph_type: Option<&str>) -> &'static str {
537537 _ => "--graph 0-1,1-2,2-3 --weights 1,1,1,1" ,
538538 } ,
539539 "KClique" => "--graph 0-1,0-2,1-3,2-3,2-4,3-4 --k 3" ,
540- "GraphPartitioning" => "--graph 0-1,1-2,2-3,0-2,1-3,0-3" ,
541540 "GeneralizedHex" => "--graph 0-1,0-2,0-3,1-4,2-4,3-4,4-5 --source 0 --sink 5" ,
542541 "IntegralFlowBundles" => {
543542 "--arcs \" 0>1,0>2,1>3,2>3,1>2,2>1\" --bundles \" 0,1;2,5;3,4\" --bundle-capacities 1,1,1 --source 0 --sink 3 --requirement 1 --num-vertices 4"
@@ -1135,19 +1134,6 @@ pub fn create(args: &CreateArgs, out: &OutputConfig) -> Result<()> {
11351134 ( data, resolved_variant. clone ( ) )
11361135 }
11371136
1138- // Graph partitioning (graph only, no weights)
1139- "GraphPartitioning" => {
1140- let ( graph, _) = parse_graph ( args) . map_err ( |e| {
1141- anyhow:: anyhow!(
1142- "{e}\n \n Usage: pred create GraphPartitioning --graph 0-1,1-2,2-3,0-2,1-3,0-3"
1143- )
1144- } ) ?;
1145- (
1146- ser ( GraphPartitioning :: new ( graph) ) ?,
1147- resolved_variant. clone ( ) ,
1148- )
1149- }
1150-
11511137 // Generalized Hex (graph + source + sink)
11521138 "GeneralizedHex" => {
11531139 let usage =
@@ -5905,27 +5891,6 @@ fn create_random(
59055891 )
59065892 }
59075893
5908- // GraphPartitioning (graph only, no weights; requires even vertex count)
5909- "GraphPartitioning" => {
5910- let num_vertices = if num_vertices % 2 != 0 {
5911- eprintln ! (
5912- "Warning: GraphPartitioning requires even vertex count; rounding {} up to {}" ,
5913- num_vertices,
5914- num_vertices + 1
5915- ) ;
5916- num_vertices + 1
5917- } else {
5918- num_vertices
5919- } ;
5920- let edge_prob = args. edge_prob . unwrap_or ( 0.5 ) ;
5921- if !( 0.0 ..=1.0 ) . contains ( & edge_prob) {
5922- bail ! ( "--edge-prob must be between 0.0 and 1.0" ) ;
5923- }
5924- let graph = util:: create_random_graph ( num_vertices, edge_prob, args. seed ) ;
5925- let variant = variant_map ( & [ ( "graph" , "SimpleGraph" ) ] ) ;
5926- ( ser ( GraphPartitioning :: new ( graph) ) ?, variant)
5927- }
5928-
59295894 // Hamiltonian Circuit (graph only, no weights)
59305895 "HamiltonianCircuit" => {
59315896 let edge_prob = args. edge_prob . unwrap_or ( 0.5 ) ;
0 commit comments