Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

arrays in java

 
vijayapriya thirumurugan
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
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
Posts: 375
Monad Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic