Skip to content

Commit decc59f

Browse files
committed
cleanup
1 parent f980757 commit decc59f

File tree

6 files changed

+152
-519
lines changed

6 files changed

+152
-519
lines changed

rust/src/graph_q_components.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ impl CliqueManager {
5050

5151
struct Dsu {
5252
parent: HashMap<CliqueId, CliqueId>,
53-
// For root nodes:
5453
vertex_union_data: HashMap<CliqueId, BTreeSet<VertexId>>, // Root CliqueId -> Union of vertices
5554
clique_ids_in_component: HashMap<CliqueId, HashSet<CliqueId>>, // Root CliqueId -> Set of CliqueIds in this component
5655
size: HashMap<CliqueId, usize>, // For union by size heuristic
@@ -290,12 +289,6 @@ pub fn find_all_q_connected_components(
290289
let mut results_by_q: HashMap<isize, Vec<BTreeSet<VertexId>>> = HashMap::new();
291290

292291
if k_max_actual == 0 {
293-
// If graph_nodes is empty, k_max_actual will be 0. Loop for q will be empty. Correct.
294-
// If graph_nodes is not empty, but k_max_actual is 0 (e.g. k_max_hint was 0 initially, and effective_k_max_hint also ended up 0, or no cliques at all),
295-
// q_max will be -1. Loop for q will be empty. Correct.
296-
// The Python code has a specific `if k_max_actual == 0 and len(graph_nodes) > 0: k_max_actual = 1`.
297-
// My `effective_k_max_hint` logic and `enumerate_k_cliques_from_graph` aims to make `k_max_actual >= 1`
298-
// if nodes exist and hint allows. If `k_max_actual` is still 0, it implies no 1-cliques could be formed or found.
299292
return results_by_q;
300293
}
301294

src/q_analysis/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
1818

19-
from .simplicial_complex import IncidenceSimplicialComplex
19+
from .simplicial_complex import SimplicialComplex
2020
from .q_analysis import *
2121
from .datasets import load_dataset
2222

2323
if hasattr(q_analysis, "__all__"):
2424
__all__ = q_analysis.__all__
2525

2626
__all__ +=[
27-
'IncidenceSimplicialComplex',
27+
'SimplicialComplex',
2828
'load_dataset',
2929
]

0 commit comments

Comments
 (0)