Skip to content

Python API to MaxEnt and PivotMDS only support 2D? #497

@deklanw

Description

@deklanw

In the Python API PivotMDS and MaxEnt both take a dim parameter

def __cinit__(self, Graph G, count dim, count numberOfPivots):

def __cinit__(self, Graph G, count dim, count k, vector[pair[double, double]] coordinates = [], double tolerance = 1e-5, _LinearSolverType linearSolverType = LAMG, bool_t fastComputation = False, _GraphDistance graphDistance = EDGE_WEIGHT):

but, a pair is assumed in the constructor vector[pair[double, double]]

And, then here in getCoordinates a pair is assumed:

cdef pair[double, double] pr = pair[double, double](0, 0)

And, anyway, I noticed that writeGraphToGML works in 3D, but if I instead wanted to include the point coordinates in the node data then save as GraphML, how would I do that?

Thanks.

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