load network data, factor out styles, parameterize nodes for layout