Skip to content

Commit

Permalink
update readme with graph transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
afourmy committed Mar 26, 2018
1 parent fb85e5e commit dff2257
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions README.md
Expand Up @@ -68,12 +68,26 @@ The Wavelength Assignment Problem aims at **minimizing the number of wavelengths

# Algorithms

## Routing with Linear Programming
## Find the shortest path with linear programming

![Improved strategy](readme/routing.png)
![Shortest path routing](readme/routing.png)

## Reduction to a graph coloring problem

We can reduce the Wavelength Assignment Problem to a graph coloring problem with a simple graph transformation:
- Each traffic path is considered a vertex
- If two traffic paths share (at least) one fiber, they are connected with an edge.

Let's apply the graph transformation to our first example:
- There are five vertices in the transformed graph
- The following couples of paths share a fiber: (P1, P2), (P1, P3), (P2, P3), (P2, P5), (P3, P4), (P3, P5), (P4, P5). Their associated vertices are connected with an edge in the transformed.

We obtain the following result:

![Transformed graph](readme/transformed_graph.png)



## "Largest degree first" heuristic

## Linear programming
Expand Down
Binary file modified examples/simple.xls
Binary file not shown.
Binary file added readme/transformed_graph.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dff2257

Please sign in to comment.