public void setNetworkGraph(NetworkGraph networkGraph) {
        if (networkGraph == null) {
            throw new IllegalArgumentException("The arugment may not be null.");
        }

        this.networkGraph = networkGraph;
    }