Skip to content

java.lang.ClassCastException on shortestPaths calculation #253

@cj2001

Description

@cj2001

I have a graph, g, which is roughly 4.5M vertices and 43M edges as:

scala> g res10: org.graphframes.GraphFrame = GraphFrame(v:[id: int], e:[src: int, dst: int])

I would like to calculate the shortest path between two given vertices, so I have run

val shortest_path = g.shortestPaths.landmarks(Seq("1","2")).run().

based on the documentation provided here. While this runs and generates the shortest_path dataframe, when I try to .show() that dataframe I get:

java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer.

Suggestions?

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