[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 583: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 639: sizeof(): Parameter must be an array or an object that implements Countable
Gephi forumsPlease post new questions on facebook group too (https://www.facebook.com/groups/gephi) 2018-02-09T03:47:59+01:00 https://forum-gephi.org/app.php/feed/topic/5275 2018-02-09T03:47:59+01:002018-02-09T03:47:59+01:00 https://forum-gephi.org/viewtopic.php?t=5275&p=14959#p14959 <![CDATA[Re: Invisible Nodes with Gephi Toolkit 0.9.1]]> I am a researcher at Department of Technology and Software Solutions - Institute of information technology - VietNam Academy of Science and Technology.
I am having a research paper on information diffusion of Twitter - a social networking and i watched your video for demo of same problem.

Can you tell me about source code which resolve this problem?

Problem: Currently, I am coding on java but i had one problem: I want to show all Edge when i clicked node. Like on Gephi app. Please help me.

Thanks for helpful,

Statistics:Posted by khuatthanhson94 — 09 Feb 2018 03:47


]]>
2016-11-23T15:36:03+01:002016-11-23T15:36:03+01:00 https://forum-gephi.org/viewtopic.php?t=5275&p=13774#p13774 <![CDATA[Re: Invisible Nodes with Gephi Toolkit 0.9.1]]> I can see edges, but not nodes(((
so littleBobbyTables could you post the code how you make graph manualy using ImportController and ImportContainer?
thanks.

Statistics:Posted by semen.kosyachenko — 23 Nov 2016 15:36


]]>
2016-07-11T15:48:53+01:002016-07-11T15:48:53+01:00 https://forum-gephi.org/viewtopic.php?t=5275&p=12826#p12826 <![CDATA[Re: Invisible Nodes with Gephi Toolkit 0.9.1]]> Statistics:Posted by littleBobbyTables — 11 Jul 2016 15:48


]]>
2016-06-16T20:08:57+01:002016-06-16T20:08:57+01:00 https://forum-gephi.org/viewtopic.php?t=5275&p=12759#p12759 <![CDATA[Re: Invisible Nodes with Gephi Toolkit 0.9.1]]> Statistics:Posted by littleBobbyTables — 16 Jun 2016 20:08


]]>
2016-06-16T20:01:30+01:002016-06-16T20:01:30+01:00 https://forum-gephi.org/viewtopic.php?t=5275&p=12757#p12757 <![CDATA[Re: Invisible Nodes with Gephi Toolkit 0.9.1]]>
my workaround was installing an older version of java, other than that I have no idea :(

I used:
http://www.oracle.com/technetwork/java/ ... 19409.html
jre-6u38-windows-x64

Statistics:Posted by Node231 — 16 Jun 2016 20:01


]]>
2016-06-12T20:17:09+01:002016-06-12T20:17:09+01:00 https://forum-gephi.org/viewtopic.php?t=5275&p=12715#p12715 <![CDATA[Re: Invisible Nodes with Gephi Toolkit 0.9.1]]> Statistics:Posted by littleBobbyTables — 12 Jun 2016 20:17


]]>
2016-06-12T20:01:16+01:002016-06-12T20:01:16+01:00 https://forum-gephi.org/viewtopic.php?t=5275&p=12713#p12713 <![CDATA[Re: Invisible Nodes with Gephi Toolkit 0.9.1]]> Can you try to set node opacity as a float (100f)? Not sure this is the problem but might be.

Statistics:Posted by eduramiba — 12 Jun 2016 20:01


]]>
2016-06-12T17:15:57+01:002016-06-12T17:15:57+01:00 https://forum-gephi.org/viewtopic.php?t=5275&p=12711#p12711 <![CDATA[Invisible Nodes with Gephi Toolkit 0.9.1]]>
I am having an issue where I am trying to create an display a graph manually (i.e. not importing from an external file) but the nodes are not showing up. They seem just entirely invisible. I have tried changing the background color to see if they were just white on a white background, but that does not appear to be the issue. The edges show up just fine, but the nodes just don't seem to appear. My code, shown below, is mostly just pieces of the demo code from the toolkit being put together to get my desired output. Also attached is a screenshot of my display. Any help would be much appreciated. Thank you!

CODE:

import java.awt.BorderLayout;import java.awt.Color;import javax.swing.JFrame;import org.gephi.graph.api.DirectedGraph;import org.gephi.graph.api.Edge;import org.gephi.graph.api.GraphController;import org.gephi.graph.api.GraphModel;import org.gephi.graph.api.Node;import org.gephi.preview.api.G2DTarget;import org.gephi.preview.api.PreviewController;import org.gephi.preview.api.PreviewModel;import org.gephi.preview.api.PreviewProperty;import org.gephi.preview.api.RenderTarget;import org.gephi.preview.types.DependantColor;import org.gephi.project.api.ProjectController;import org.gephi.project.api.Workspace;import org.gephi.toolkit.demos.plugins.preview.PreviewSketch;import org.openide.util.Lookup;/** * * @author JasonB * */public class BasicGraphBuild {public static void main(String[] args) {BasicGraphBuild bscGraphBuild = new BasicGraphBuild();bscGraphBuild.script();}public void script() {ProjectController pc =Lookup.getDefault().lookup(ProjectController.class);pc.newProject();Workspace workspace = pc.getCurrentWorkspace();GraphModel graphModel = Lookup.getDefault().lookup(GraphController.class).getGraphModel();Node n0 = graphModel.factory().newNode("n0");n0.setLabel("Node 0");n0.setX((float) ((0.01 + Math.random()) * 1000) - 500);n0.setY((float) ((0.01 + Math.random()) * 1000) - 500);Node n1 = graphModel.factory().newNode("n1");n1.setLabel("Node 1");n1.setX((float) ((0.01 + Math.random()) * 1000) - 500);n1.setY((float) ((0.01 + Math.random()) * 1000) - 500);Node n2 = graphModel.factory().newNode("n2");n2.setLabel("Node 2");n2.setX((float) ((0.01 + Math.random()) * 100) - 50);n2.setY((float) ((0.01 + Math.random()) * 100) - 50);Edge e1 = graphModel.factory().newEdge(n0, n1, 0, 1.0, true);Edge e2 = graphModel.factory().newEdge(n0, n2, 0, 1.0, true);DirectedGraph directedGraph = graphModel.getDirectedGraph();directedGraph.addNode(n0);directedGraph.addNode(n1);directedGraph.addNode(n2);directedGraph.addEdge(e1);directedGraph.addEdge(e2);// Preview configurationPreviewController previewController =Lookup.getDefault().lookup(PreviewController.class);PreviewModel previewModel = previewController.getModel();previewModel.getProperties().putValue(PreviewProperty.EDGE_CURVED,Boolean.FALSE);previewModel.getProperties().putValue(PreviewProperty.DIRECTED,Boolean.TRUE);previewModel.getProperties().putValue(PreviewProperty.NODE_BORDER_COLOR,new DependantColor(Color.BLACK));previewModel.getProperties().putValue(PreviewProperty.SHOW_NODE_LABELS,Boolean.TRUE);previewModel.getProperties().putValue(PreviewProperty.NODE_OPACITY,100);previewModel.getProperties().putValue(PreviewProperty.EDGE_OPACITY, 50);previewModel.getProperties().putValue(PreviewProperty.EDGE_RADIUS, 10f);previewModel.getProperties().putValue(PreviewProperty.BACKGROUND_COLOR,Color.WHITE);// New Processing target, get the PAppletG2DTarget target = (G2DTarget) previewController.getRenderTarget(RenderTarget.G2D_TARGET);PreviewSketch previewSketch = new PreviewSketch(target);previewController.refreshPreview();previewSketch.resetZoom();// Add the applet to a JFrame and displayJFrame frame = new JFrame("Test Preview");frame.setLayout(new BorderLayout());frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);frame.add(previewSketch, BorderLayout.CENTER);frame.setSize(1024, 768);frame.setVisible(true);}}
No_Nodes.PNG

Statistics:Posted by littleBobbyTables — 12 Jun 2016 17:15


]]>