File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programming Diversions and the fly likes arrays in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "arrays in java" Watch "arrays in java" New topic

arrays in java

vijayapriya thirumurugan

Joined: Apr 03, 2009
Posts: 16
i'm doing project in java. i'm doing apriori algorithm in java , its graph based one. can you tell me that how to convert mydataset into matrix format(Adcency matrix).
Gabriel Claramunt
Ranch Hand

Joined: May 26, 2007
Posts: 375

Here is the wikipedia entry for adjacency matrix. How to convert your data to that, depends on what do you have. What's the format of your graph representation? How you would get the list of nodes? How you can get the list of adjacent nodes for a given node?
With that you can build the matrix.

Software Surgeon
I agree. Here's the link:
subject: arrays in java
It's not a secret anymore!