public void InitGraphManager(string algorithmName, string graphStructure, string edgeType, bool isShortestPath, Dictionary <string, int> rngDict, ListVisual listVisual, int minEdgeCost, int maxEdgeCost) { this.algorithmName = algorithmName; this.graphStructure = graphStructure; this.edgeType = edgeType; this.isShortestPath = isShortestPath; this.rngDict = rngDict; this.listVisual = listVisual; this.minEdgeCost = minEdgeCost; this.maxEdgeCost = maxEdgeCost; // Init edges edges = new List <GameObject>(); // Cleanup? GraphMain graphMain = GetComponentInParent <GraphMain>(); nodePrefab = graphMain.nodePrefab; undirectedEdgePrefab = graphMain.undirectedEdgePrefab; directedEdgePrefab = graphMain.directedEdgePrefab; symmetricDirectedEdgePrefab = graphMain.symmetricDirectedEdgePrefab; nodeContainerObject = graphMain.nodeContainerObject; edgeContainerObject = graphMain.edgeContainerObject; }