Exactlly
HOW to implement gyud ang Graph nga Data Structure using Java?
Gi hatagan mi ug project about ani gud, Though ka sabot ko what a graph is, implementing it is a whole different matter. Mostly because wa mi-tudlui sa maestra
Anyways, based sa akong googling, akong understanding on implementing it is, I need the following classes:
- Graph class
- Vertex class
- Edge class
Where:
Ang Vertex class is a sort of
"Node"
Ang Edge class holds two Vertex objects and an integer "
weight".
Ang Graph class holds the lists of Vertices and Edges nga mau ang representation sa akong undirected graph.
And also sa Prim's algo, ka gets ko sa algo, pero ga lisud ko kung gamitan ba ni ug queue para pag check sa lowest path costs inig traverse.
Sakto ba kaha to akong sabot sa graphs??