grapg representation

i want to write the code for the grapg with n nodes and m arcs that every arc have 3 component:x for flow, u for capaciti and w for price and every node have 2 component: pi for potential and b for demand and i need that this code represent the degree of every node.
please help me.
Topic archived. No new replies allowed.