Skip to content

Changes to the algorithm? #1

@cryo75

Description

@cryo75

For testing purposes, I changed the weight from double to a class Edge to that I can store more information for each edge:

public class Edge {
public double weight;
public int info1, info2;
public String info3;
}

First, after searching for paths, I noticed that the last vertex's weight for each path is 0. Why is this?

Second, how to get the edge used between 2 vertices because for each edge in the path, I need to get that info?

Third, what changes need to be done to make it an undirected graph, so that an edge from (v, w) is the same as (w, v)... without duplicating the number of edges required?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions