require 'java'

include_class 'cytoscape.Cytoscape'
include_class 'cytoscape.layout.CyLayouts'
include_class 'cytoscape.layout.LayoutAlgorithm'
include_class 'cytoscape.CytoscapeInit'

props = CytoscapeInit.getProperties
props.setProperty("layout.default", "force-directed")

Dir::glob("sampleData/*.sif").each {|f|
	puts "Loading: " + f
        Cytoscape.createNetworkFromFile f
       	Cytoscape.getCurrentNetworkView.redrawGraph(false, true)
}
