0

我尝试使用 SchemaCrawler 从 Oracle 数据库中获取 MPD。该工具生成一个点文件,然后使用点生成图形。

但是一个小时后,处理仍然没有完成,所以我尝试使用以下命令在我的点文件上启动自己的点:

dot -v -Tpng schemacrawler.7007049984130928063.dot > graph.png

在下面的点文件中,我尝试减少边缘的数量,大约 60 个边缘持续 2 分钟,超过它永远不会完成。=> 文件: http: //pastebin.com/Wvup5NTF

我得到以下跟踪:

C:\dev\softs\schemacrawler-oracle-10.08.02>dot -v -Tpng schemacrawler.7007049984130928063.dot > graph.png

dot - graphviz version 2.30.1 (20130214.1330)

libdir = "C:\dev\softs\graphviz"

Activated plugin library: gvplugin_pango.dll

Using textlayout: textlayout:cairo

Using render: cairo:cairo

Using device: png:cairo:cairo

Activated plugin library: gvplugin_dot_layout.dll

Using layout: dot:dot_layout

The plugin configuration file:...

network simplex:  28 nodes 80 edges maxiter=2147483647 balance=2

在那之后,什么都没有。有没有办法让它更快并且能够管理如此数量的节点和边缘(我认为这不是那么高)?

谢谢

4

1 回答 1

1

尝试更新您的 Graphviz。我尝试了该文件,它对我来说效果很好。这是详细的输出:

dot - graphviz version 2.36.0 (20140111.2315)
Using render: cairo:cairo
Using device: png:cairo:cairo
libdir = "/usr/local/lib/graphviz"
Activated plugin library: libgvplugin_dot_layout.6.dylib
Using layout: dot:dot_layout
The plugin configuration file:
    /usr/local/lib/graphviz/config6
        was successfully loaded.
    render  :  cairo dot fig map pic pov ps quartz svg tk vml xdot
    layout  :  circo dot fdp neato nop nop1 nop2 osage patchwork sfdp twopi
    textlayout  :  textlayout
    device  :  bmp canon cgimage cmap cmapx cmapx_np dot eps exr fig gif gv icns ico imap imap_np ismap jp2 jpe jpeg jpg pct pdf pic pict plain plain-ext png pov ps ps2 psd sgi svg svgz tga tif tiff tk vml vmlz x11 xdot xdot1.2 xdot1.4 xlib
    loadimage   :  (lib) bmp eps gif jpe jpeg jpg pdf png ps svg
fontname: "Helvetica" resolved to: (ps:pango  Helvetica,  REGULAR) (PangoCairoCoreTextFont) "Helvetica" 
network simplex:  28 nodes 27 edges maxiter=2147483647 balance=2
network simplex: 28 nodes 27 edges 0 iter 0.00 sec
network simplex:  4 nodes 4 edges maxiter=2147483647 balance=2
network simplex: 4 nodes 4 edges 0 iter 0.00 sec
network simplex:  1 nodes 0 edges maxiter=2147483647 balance=1
network simplex: 1 nodes 0 edges 0 iter 0.00 sec
Maxrank = 0, minrank = 0
mincross: pass 0 iter 0 trying 0 cur_cross 0 best_cross 0
mincross SchemaCrawler_Diagram: 0 crossings, 0.00 secs.
network simplex:  1 nodes 0 edges maxiter=2147483647 balance=2
network simplex: 1 nodes 0 edges 0 iter 0.00 sec
routesplines: 0 edges, 0 boxes 0.00 sec
Using render: cairo:cairo
Using device: png:cairo:cairo
dot: allocating a 601K cairo image surface (312 x 493 pixels)
gvRenderJobs SchemaCrawler_Diagram: 0.10 secs.

这是生成的图像:

点输出

于 2014-01-29T18:11:43.487 回答