Quantcast
Viewing latest article 9
Browse Latest Browse All 10

Java – Possible to draw a basic force-directed undirected Graph (Vertices, Edges)?

I am trying to create a class in Java that will extend another class called Graph.

The outline of the graph class is as follows:

  • Graph constructor
  • adjacent(int i, int j)
  • addEdge, removeEdge methods
  • addVertex, removeVertex methods
  • neighbors method
  • numOfEdges method
  • averageDegree method
  • girth method

I want to know if it possible to draw a very very basic force-directed undirected graph in Java using the graph class that I have made. I want my graph to be visually pleasing!

If so, can anyone point me in the right direction?


Viewing latest article 9
Browse Latest Browse All 10

Trending Articles