Skip to main content
Code Review

Questions tagged [graph]

A graph is an abstract representation of objects (vertices) connected by links (edges). For questions about plotting data graphically, use the [data-visualization] tag instead.

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

Compute the flood polynomial of one graph using Mathematica

Reference: arXiv:2504.04233 Example 2.12: 4-vertex cycle graph Structure: Square graph with 4 vertices Flooding cascade sets: 7 total (2 of size 2, 4 of size 3, 1 of size 4) Key insight: Opposite ...
0 votes
0 answers
8 views

Gremban Expansion for Signed Networks and Community–Faction Detection

I made Mathematica demonstration of Gremban Expansion for Signed Networks and Community–Faction Detection based on the 2 algorithms provided in arXiv:2509.14193. ...
0 votes
1 answer
13 views

Count triangles in K4-free graphs

Port the Python code provided in the appendix of arXiv:2509.12100 to Mathematica code. The Wolfram code successfully: ✅ Constructs all 6 graph types correctly ✅ Detects K4-free properties ✅ Counts ...
0 votes
0 answers
9 views

Demonstration of the Power Contamination Problem on Grids Revisited in Mathematica

The implementation successfully demonstrates all key findings from the research paper arXiv:2509.12756, including the disproof of the original conjecture and the establishment of the correct formula ...
0 votes
0 answers
45 views

Computing \$k\$ most reliable paths in undirected probabilistic graphs in Java

Intro (See MostProbablePath.java.) This time, I elaborate on Computing most probable (reliable) path in a probabilistic graph (take II): instead of computing the most reliable path I now return \$k\$ ...
4 votes
1 answer
260 views

Computing most probable (reliable) path in a probabilistic graph (take II)

Intro A probabilistic graph \$G = (V, E)\$ is an undirected graph with weight function \$w \colon E \rightarrow [0, 1]\$. In the most reliable path problem we -- given two terminal nodes \$s \in V\$ ...
1 vote
0 answers
57 views

PathFinding.java: Drawing a random perfect maze via randomized DFS

Intro Still working on PathFinding.java. This time I concentrate on three private methods of GridModel that are responsible for generating random perfect mazes. A maze is perfect if for each two cells ...
4 votes
1 answer
120 views

PathFinding.java: Beam search in Java

Intro I am currently working on this project (PathFinding.java). This time, I need to get the following class reviewed: Code ...
1 vote
0 answers
64 views

Fixed BIDDFS (bidirectional iterative deepening depth first search) in Java

Intro I have this GitHub repository for doing pathfinding in directed unweighted graphs. This post is about BIDDFS proposed by Richard Korf in his paper. Code ...
2 votes
0 answers
46 views

Use Mathematica to calculate Treewidth

The treewidth is a measure of the count of original graph vertices mapped onto any tree vertex in an optimal tree decomposition. I wrote Mathematica code to calculate Treewidth based on the Python ...
1 vote
0 answers
30 views

LibID: a Java library containing some iterative deepening algorithms for pathfinding on directed unweighted graphs

Intro I have this GitHub repository containing some iterative deepening pathfinding algorithms. Code ...
6 votes
2 answers
111 views

Slack User Interaction Graph – Collaboration Topology

I’ve written a small Python module to generate mock Slack workspace data, build a user–user interaction graph, and surface complementary collaborators based on skill sets. The key features are: Data ...
Bob's user avatar
Bob
  • 221
5 votes
1 answer
57 views

Generate Javascript call graph in Graphviz DOT language

I use the following code to create a call graph from javascript file(s). I generate the output in Graphviz DOT language in order to create visualizations of that graph using the Graphviz command line. ...
5 votes
1 answer
340 views

Iterative DFS with Optimized Space Complexity

Background I can't seem to find an existing answer solving this doubt of mine. In academic books, it seems that DFS is usually presented in both recursive and iterative forms. The implementations ...
1 vote
1 answer
60 views

How to count disconnected components in grid efficiently, if we can move left, right, down and top from any cell

I solved this problem: A. Ice Skating, Codeforces My approach was to create grid from given snow drifts coordinates, then convert this grid into graph and then count how many disconnected components ...

15 30 50 per page
1
2 3 4 5
...
49

AltStyle によって変換されたページ (->オリジナル) /