Skip to content

How to convert gephi Graph to adjacency matrix? #228

Open
@yossisp

Description

@yossisp

I'm new to Gephi and I want to create new plugin which calculates Katz Centrrality using an adjacency matrix. I don't see that there's any API within Graph API which allows to convert graph to a matrix. Is there another class which does this? I couldn't find any such class in the Gephi repo.

I was wondering how to go about this if there's no Gephi helper to convert graph to matrix. Should I implement the logic which converts graph to matrix myself? Is there a 3rd party package that you know of which does this?

Maybe I'm missing something because I'd think the use case of adjacency matrix would be quite common with graphs.

In case I need to implement such functionality I thought to implement logic to convert graph to adjacency matrix and then use another 3rd party package (e.g. Apache Commons Math) in order to do matrix multiplication/transposition/inverse. Using 3rd party packages is allowed right? What license should those packages have?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions