Skip to main content

Python3 Implementation of the WireWalk Algorithm

Project description

wirewalk

Install

pip install wirewalk

Prerequisites

You will need

I highly recommend installing an Anaconda environment. Future versions of WireWalk will be available on PyPI and conda.

How to use

import networkx as nx
from wirewalk.core import WireWalk, jaccard_coefficient, max_flow

# Create a graph
graph = nx.fast_gnp_random_graph(n=10, p=0.5)

# Instantiate a WireWalk object
wireWalk = WireWalk(graph, dimensions = 128, window = 10, walk_length = 80, num_walks = 10, workers = 1)

# Compute transition probabilities using jaccard coefficient transformation, generate walks, and embed nodes
model = wireWalk.fit(jaccard_coefficient)

# **MAX_FLOW and MIN_COST_MAX_FLOW ONLY WORK WITH GIVEN capacity**
# If weight exists, then  
# nx.set_edge_attributes(graph, nx.get_edge_attributes(graph, "weight"), "capacity").
# Otherwise,
nx.set_edge_attributes(graph, 1, "capacity")
model = wireWalk.fit(max_flow)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wirewalk-0.0.1.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

wirewalk-0.0.1-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file wirewalk-0.0.1.tar.gz.

File metadata

  • Download URL: wirewalk-0.0.1.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for wirewalk-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ad00e5b2967559fc79288dcdf7004ef258f6494992eda90ba744f0b924990165
MD5 dbcae6f61fdeeae926ef9ce18964d042
BLAKE2b-256 0a47d4bceba0e75bccb725ebe8d98999beb992925e0f80b4baebd2445a0efd9f

See more details on using hashes here.

File details

Details for the file wirewalk-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: wirewalk-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for wirewalk-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c97e091be03460af83249d35a089f93fe31a9bfcd7d7899a4609ef18c503d9c8
MD5 3a53faf4d80ab1633301bf0ba6abc6ff
BLAKE2b-256 f4788aa91d07132c88a815a2d420c3a9a2a1e89a79614f44d6906fb9f3fcddd8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page