Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int this[T from, T to]
- {
- get
- {
- if (_adjacencyList[from].ContainsKey(to))
- {
- return _adjacencyList[from][to];
- }
- else
- {
- return Int32.MaxValue;
- }
- }
- set
- {
- _adjacencyList[from][to] = value;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement