In this paper we present a systematic framework for modeling of power networks. The basic idea is to view the complete power network as a port-Hamiltonian system on a graph where edges correspond to components of the power network and nodes are buses. The interconnection constraints are given by the graph incidence matrix which captures the interconnection structure of the network. As a special case we focus on the system obtained by interconnecting a synchronous generator with a resistive load. We use Park's state transformation to decouple the dynamics of the state variables from the dynamics of the rotor angle, resulting in a quotient system admitting equilibria. We analyze the stability of the quotient system when it is given constant i...