Cycles in a graph
Objective
This experiment aims to help students understand and practice key concepts in graph theory through interactive tasks. Students will learn to:
- Identify and construct Hamiltonian cycles in graphs
- Determine whether a graph is Eulerian
- Solve the Traveling Salesman Problem using weighted graphs
Task 1: Drawing Hamiltonian Cycle
Draw a Hamiltonian cycle by following these steps:
- Click edges to form a closed loop
- Start and end at the same node
- Visit each node exactly once
Submit your solution:
- If a Hamiltonian cycle exists: Select edges in the correct order, then click submit
- If no Hamiltonian cycle exists: Click submit without selecting any edges
Review your answer:
- Check the answer in the observation window
- Read the provided explanation
Try another graph:
- Click the "change graph" button to get a new graph
Task 2: Validating Eulerian Graphs
Analyze the given graph:
- Use the buttons in the Observation window
- Determine if the graph is Eulerian
Verify your answer:
- Check your response in the observation window
Practice with different graphs:
- Click the "change graph" button to get a new graph
Task 3: Finding Shortest Weighted Routes
Analyze the weighted graph:
- Find the shortest route that:
- Visits all nodes exactly once
- Returns to the starting node
- Find the shortest route that:
Draw your solution:
- Select edges in order to show the shortest weighted path
Check your work:
- Verify your answer in the observation window
Try more examples:
- Click the "change graph" button to get a new graph