Support reading a graph from a JSON file and building a network programmatically.