edges-to-adjacency-list

WebJar for edges-to-adjacency-list

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

edges-to-adjacency-list
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

edges-to-adjacency-list
WebJar for edges-to-adjacency-list
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/mikolalysenko/edges-to-adjacency-list

Скачать edges-to-adjacency-list

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/edges-to-adjacency-list/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>edges-to-adjacency-list</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/edges-to-adjacency-list/
implementation 'org.webjars.npm:edges-to-adjacency-list:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/edges-to-adjacency-list/
implementation ("org.webjars.npm:edges-to-adjacency-list:1.0.0")
'org.webjars.npm:edges-to-adjacency-list:jar:1.0.0'
<dependency org="org.webjars.npm" name="edges-to-adjacency-list" rev="1.0.0">
  <artifact name="edges-to-adjacency-list" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='edges-to-adjacency-list', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "edges-to-adjacency-list" % "1.0.0"
[org.webjars.npm/edges-to-adjacency-list "1.0.0"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : uniq jar [1.0.0,2)

Модули Проекта

Данный проект не имеет модулей.

edges-to-adjacency-list

Converts a collection of edges in a graph to an adjacency list representation. For the more general operation on simplicial complexes, use the stars module.

Example

var e2a = require("edges-to-adjacency-list")

console.log(e2a([
  [0, 1],
  [1, 2],
  [2, 3]
]))

Output:

[ [1],
  [0, 2],
  [1, 3],
  [2]
]

Install

npm install edges-to-adjacency-list

API

require("edges-to-adjacency-list")(edges[, numVertices])

Converts a collection of edges to an adjacency list representation.

  • edges are the edges of the graph
  • numVertices is an optional parameter giving the number of vertices in the graph

Returns An array encoding the adjacency list of the graph

Note Repeated edges will be combined.

Credits

(c) 2014 Mikola Lysenko. MIT License

Версии библиотеки

Версия
1.0.0