change getters for graph<E, T>

- remove the following function for safety
priority_queue<Edge_Type>& get_edges()
{
return edges;
}