Java双向链接集数据结构 [英] Java Two-Way Linked Set data-structure

查看:68
本文介绍了Java双向链接集数据结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否存在以下已经在Java中实现的数据结构的实现:

Is there an implementation of the following data-structure already implemented in Java:

说我想要'2'(' A','C','D'),但我还希望为'A'('1','2')设置

Say I want the set for '2' ('A', 'C', 'D') but I also want the set for 'A' ('1', '2')

推荐答案

在Java Collections Framework中您没有这样的数据结构。

You have no such data structure in the Java Collections Framework.

我建议您番石榴库,您可能会在这里找到有用的东西。

I suggest you the guava library you may find something useful there.

请注意,这里实际上是无向图,因此请注意图库(例如 JGraphT ),或者自己编写。

Note that what you have here is essentially a undirected graph so keep an eye out for graph libraries (for example JGraphT), or write your own.

这篇关于Java双向链接集数据结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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