Skip to main content
3 votes
0 answers
126 views

I am dealing with a large directed graph where nodes and edges can be added or removed dynamically during runtime. The main challenge is to detect cycles efficiently after each update without ...
windsellr's user avatar
0 votes
1 answer
80 views

I'm trying to detect cycles in a directed graph using a DFS-based approach in Java. I implemented a solution that uses a visited[] array and builds map from the input edge list. It seems to work ...
Игорь Райский's user avatar
0 votes
2 answers
166 views

Graph Representation: I am using an adjacency list to represent a large directed graph with millions of nodes. Each node may have several outgoing edges, but the graph is sparse (few edges relative to ...
Chameera Chathuranga's user avatar
0 votes
0 answers
26 views

I have a cyclic 1-D sequence of tuples of numeric values, and I'm trying to figure out the best way to find the length of the cycle. This is complicated by 2 factors: The sequence of values in one ...
Justin Olbrantz's user avatar
1 vote
0 answers
181 views

I am working on a problem where I need to detect cycles in a directed graph. The graph is represented using an adjacency list, and it can have a large number of nodes and edges. I am looking for the ...
user25350358's user avatar
0 votes
0 answers
51 views

On a binary matrix M, a cyclic island is a region of 1s where the region encircles itself (horizontal, vertical and cross directions are allowed) Given a matrix M, Allowing neighbors to be in any of ...
Semzem's user avatar
  • 93
0 votes
1 answer
122 views

I've been working on implementing the Bellman-Ford algorithm in Python to detect negative cycles for the problem linked above. However, I've hit a roadblock. Despite my efforts, I've encountered ...
Anand Singh1's user avatar
0 votes
0 answers
123 views

I'm using python and graph-tool to do graph analysis. In a graph g, I want to find all cycles up to a specific length max_length of which a given node node is a member. Related question: How to ...
Daniel S.'s user avatar
  • 6,700
1 vote
2 answers
323 views

I want to find all nodes of a graph, which are in simple cycles of length up to some given maximum cycle length max_length. Along with this I want to make a histogram of the number of cycles (per ...
Daniel S.'s user avatar
  • 6,700
0 votes
1 answer
296 views

I'm trying to find cycles in an undirected, unweighted graph. In [node, node] format. Here is the code I wrote: def find_cycles(graph): cycles = [] def dfs(node, visited, path): ...
Mani's user avatar
  • 3
1 vote
1 answer
194 views

I have this undirected and weighted graph in the above link and I just cannot detect how many cycles are there. I have tried BFS, DFS and Set disjoint method but all of them just goes wrong somewhere ...
Mashrur Kabir Riyan's user avatar
0 votes
1 answer
83 views

Currently I have a Product class like so: @Entity() export class Product { @PrimaryGeneratedColumn() id: number; @ManyToMany(() => Product, (product) => product.id, { onDelete: '...
CXY's user avatar
  • 33
0 votes
0 answers
238 views

I have a battery voltage data with respect to Datetime, collected data for one month I need to find out the number of cycles of battery hers is my data https://docs.google.com/spreadsheets/d/...
aparna podili's user avatar
2 votes
1 answer
161 views

I am solving this problem, a part of the problem that is giving me troubles is formulated as follows: a. Start from index i=0; b. Jump to index i=A[i]; c. If the current index i is outside the valid ...
Bart Louwers's user avatar
0 votes
1 answer
98 views

When there are multiple solutions, I want to return the solution where courses are in ascending order. How can I do that by the topological sort algorithm?
sam's user avatar
  • 21

15 30 50 per page