简体   繁体   English

Smalltalk的图论库

[英]Graph Theory library for Smalltalk

Anybody know of an implementation of graph algorithms in Smalltalk? 有人知道Smalltalk中图算法的实现吗?

I'd like something that allows you to implement an interface on your model objects or something and provides algorithms for transitive closure, transitive reduction, topological sort, etc., etc. 我想要一些允许你在模型对象或其他东西上实现接口的东西,并为传递闭包,传递简化,拓扑排序等提供算法等。

People end up re-implementing these widely-applicable algorithms so often, it would be great to have a generic implementation available that everybody could use. 人们最终经常重新实现这些广泛适用的算法,拥有一个每个人都可以使用的通用实现会很棒。

Pointers to a similar library for other (preferably OO) languages that could be ported would also be useful I guess. 对于可以移植的其他(最好是OO)语言的类似库的指针,我猜也是有用的。

I don't know if it has everything you need (and it includes a whole lot of other stuff), but the Jun library (GPL Licensed) might be a good place to start. 我不知道它是否包含您需要的所有内容(并且它包含许多其他内容),但Jun库(GPL Licensed)可能是一个很好的起点。 It's shipped as part of the standard NC version of VisualWorks, not sure about the other Smalltalks. 它作为VisualWorks标准NC版本的一部分提供,不确定其他Smalltalks。 The package you'd be interested in is called Jun-Topology-Graph. 您感兴趣的包称为Jun-Topology-Graph。

对于Squeak,请查看声称是图形库的http://www.squeaksource.com/Graph.html ,如“这些类添加一个集合类别来表示集合,但不一定有序列,但更结构化比设定“。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM