Questions tagged [euler-path]

For a finite graph, walk every edge exactly once with the start and end node being the same.

References:

Wikipedia
Wolfram

Related tags:
graph-theory not graph
hamiltonian-path
hamiltonian-cycle
transitive-closure

21 questions
0
votes
1 answer

differentiating the SEIR model in Java

I'm attempting to make a simulation of the SEIR epidemic model. It contains four parts: Susceptibles (non-infected) Exposed (infected but not infectious yet) Infectious (infected and infectious) Removed (recovered/dead) where gamma γ is the…
0
votes
1 answer

Prolog grade counter and eulerpath

this week I got this homework to do: count the grade of nodes in a undirected graph and test if there is a euler path in it. the function should work like following: gradliste([[a,b],[b,c],[b,g],[c,d],[d,e],[e,f],[f,g],[g,h],[c,f]],X). X = [[a, 1],…
bearzk
  • 685
  • 3
  • 7
  • 22
0
votes
0 answers

Find minimal cost of eulerian path,which is contain given edges in undirected graph(Algorithm)

How to find in undirected, weighted graph the minimal eulerian path?(This path must contain the given edges) The weight of the edges is the sum of the 2 points(exmpl:edge 4-9 weight=4+9=13) for all edges. example: With 6 nodes(N),and with 5…
0
votes
1 answer

Hamiltonian path- can I cover an edge twice when every vertex can be covered only once?

From this question- Difference between hamiltonian path and euler path, every Hamiltonian path is not a Euler path. How can I cover every vertex exactly once and cross an edge twice?
leo valdez
  • 259
  • 1
  • 15
0
votes
3 answers

Directed Graph: Euler Path

Based on standard defination, Eulerian Path is a path in graph that visits every edge exactly once. Now, I am trying to find a Euler path in a directed Graph. I know the algorithm for Euler circuit. Its seems trivial that if a Graph has Euler…
minhaz
  • 4,233
  • 3
  • 33
  • 49
-2
votes
1 answer

Suggestions needed for improving eulerian path algorithm for CSES Mail Delivery problem

I am getting time limit exceeded for my solution for CSES Mail Delivery for some test cases. Your task is to deliver mail to the inhabitants of a city. For this reason, you want to find a route whose starting and ending point are the post office,…
1
2