Text this: Application of the Graph Theory in Managing Power Flows in Future Electric Networks