From 5f6d1c3cba8d5404d0a7ea3ccc94e03436de9342 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 4 Dec 2025 23:38:02 +0100 Subject: [PATCH] sag:: an option to generate unweighted graph --- rogueviz/sag/data.cpp | 49 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/rogueviz/sag/data.cpp b/rogueviz/sag/data.cpp index f5ccd67c..eda2d2d9 100644 --- a/rogueviz/sag/data.cpp +++ b/rogueviz/sag/data.cpp @@ -346,6 +346,51 @@ void generate_fake_data(int n, int m) { } } +/** Generate an unweighted graph, with edges determined by logistic. Prepare with -sagrt first */ +void generate_unweighted(int DN) { + + if(state & SS_DATA) return; + init_cells(); + + int N = isize(sagcells); + + sagid.resize(DN); + for(int i=0; i colors; + + if(colorpartite) { + colors.resize(DN); + for(int i=0; i