Worked on graph type methods.

Simplified and reorganized graph type methods.
Added use of Map for tracking edge and arc values.