Skip to content

Building big graph takes to much time #197

@Maryia-M

Description

@Maryia-M

Hi, I'm trying to run hipster4j on different planar graphs (100, 1000, 10000, 100000, 1000000 vertices). But it takes to much time even to build graph (much more than running A* algorithm from this library on this graph) starting from 10000 vertices. Here is code how I build graph:

GraphBuilder<String, Double> gb = GraphBuilder.<String, Double>create();

for (Edge edge : g.edges) {
	gb.connect(edge.firstId).to(edge.secondId).withEdge(edge.weight);
}
HipsterGraph<String, Double> graph = gb.createUndirectedGraph();

Maybe there are some faster ways to do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions