在Java中使用Cytoscape工具来构建图形 [英] Cytoscape like tools in java to build a graph

查看:262
本文介绍了在Java中使用Cytoscape工具来构建图形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将图形构建为项目需求的一部分。假设,我的输入格式如下所示。

比尔盖茨创立了微软。

我需要用图形表示上面的节点表示(node1可以是Bill门,node2可以是Microsoft)。我遇到了cytoscape,一种用于有效表示分子相互作用的工具。它允许用户创建新的插件并将其添加到应用程序中。
但是,我的要求更像是从用户那里获取输入并基于此创建图表。例如,我的输入如下。

输入node1:Bill Gates
输入node2:Microsoft



我需要显示上面的内容图表表示。请让我知道如何去做。我将代表一个巨大的图表。 (即)我的输入可能包含大约50k个节点和边缘。所以我更喜欢一些图形构建工具,它有一些预定义的格式来接受输入。因此,基本上我会接受来自用户的输入并将它们转换为图形构建工具正在使用的格式,并在Java控制台中显示来自工具的图形或用户界面。

让我知道你是否需要更多细节。

解决方案

很大程度上取决于您计划解决此问题的级别。较大的库更强大,但它们通常具有更陡峭的学习曲线。以下是一些需要考虑的方法:


  • JHotDraw ,引用此处是创建自定义图形编辑器的元库。


  • Prefuse ,演示

  • GraphViz ,已检查 here ,是一个由AT& T开发的图形可视化库。 a href =https://stackoverflow.com/tags/jgraph/info> JGraph ,链接 here ,是一个流行的图形可视化库。

  • .google.com /网站/ drjohnbmatt hews / graphpanelrel =nofollow noreferrer> GraphPanel ,如图所示这里,显示一个非常基本的图形编辑面板。

I need to build graphs as part of a project requirement. Suppose, I have my inputs specified in the format as below.

Bill gates founded Microsoft.

I need to represent the above as node representations pictorially(node1 can be Bill gates and node2 can be Microsoft). I came across cytoscape, a tool used for representing molecular interactions effectively. It allows the user to create new plugins and simply add them in the application. However, my requirement is more like getting the input from user and building the graph based on that. For example, my inputs will be as below.

Enter node1: Bill Gates Enter node2: Microsoft

I need to show the above as a graph representation. Kindly let me know on how to go about it. I will be representing a huge graph. (i.e.) My input may contain around 50k nodes and edges. So I prefer some graph building tool which has some predefined format for accepting the input.

So, basically I will be accepting the input from users and convert them to the format that the graph building tool is using and display the graph from the tool in the java console or user interface.

Let me know if you need more details.

解决方案

A lot depends on the level at which you plan to address this problem. Larger libraries are more powerful, but they typically have a steeper learning curve. Here are some approaches to consider:

  • JHotDraw, cited here, is a meta-library for creating custom graph editors.

  • Prefuse, demonstrated here, supports graph modeling, visualization, and interaction.

  • GraphViz, examined here, is a graph visualization library developed by AT&T.

  • JGraph, linked here, is a popular graph visualization library.

  • GraphPanel, illustrated here, shows a very basic graph editing panel.

这篇关于在Java中使用Cytoscape工具来构建图形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆