Hi, thanks everyone for the help but dont worry, I've already done it.
Many thanks.
Type: Posts; User: Khadafi
Hi, thanks everyone for the help but dont worry, I've already done it.
Many thanks.
Hi, thanks for your help, I got it working.
Thanks once again.
import java.util.ArrayList;
public class Edge
{
static ArrayList<Edge> edgeList = new ArrayList<Edge>();
public int from;
public int to;
public int cost;
public Edge myEdges;
public class Edge
{
public int from;
public int to;
public int cost;
public Edge myEdges;
public Edge(int from, int to, int cost)
{
this.from = from;
It said duplicate name myEdges
Hi, would i need to do something like this
Edge myEdges;
ArrayList<Edge> myEdges = new ArrayList<Edge>();
Sorry could you explain further i am new to java.
Hi, I am creating a simple program using Kruskals Algorithm
I am stuck on creating almost like a structure to hold the data for the algorithm.
For example, I need an arraylist of:
edges...