Map <String ,List<Edge>> graph = new HashMap<String, List<Edge>>();
this is the map
i filled it with nodes(String) and edges(neighbor(String),weight(int)) ı can print the keys but ı couldnt reach the neighbor and weight variables thanks for the help
public class Edge {
String Destination;
int weight;
}
main class just read from txt some data like (node)1.(to)2(50(weight)) in this pattern