Separate netgraph into its own module.