Skip to content

Commit

Permalink
setup for initial deno release
Browse files Browse the repository at this point in the history
  • Loading branch information
rodigu committed Jan 29, 2022
1 parent a944782 commit eaf94e9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -563,11 +563,6 @@ export class Network {
return weighted_net;
}

// TODO: BFS

// TODO:
// - [] closenessCentrality

/**
* Creates a [k-core](https://www.wikiwand.com/en/Degeneracy_(graph_theory)) decomposition of a network.
* @param {number} k
Expand Down Expand Up @@ -608,7 +603,7 @@ export class Network {

const { vertices, edges } = k2;

edges.forEach((edge, key) => {
edges.forEach((edge) => {
const { from, to } = edge.vertices;
vertices.forEach((vertex) => {
const { id } = vertex;
Expand Down Expand Up @@ -661,7 +656,6 @@ export class Network {
edge_b: EdgeArgs,
is_directed = this.is_directed
): boolean {
// TODO: multigraph -> edge needs to have the same id
if (edge_a.from === edge_b.from && edge_a.to === edge_b.to) return true;
else if (
edge_a.to === edge_b.from &&
Expand Down

0 comments on commit eaf94e9

Please sign in to comment.