title
virtual network embdding
install method
pip install vne-sim
run method
init code
from VNE_SIM import *
import VNE_SIM.algorithm as alg
SNpath=’topology\sn\sub100-570.txt’
vnrpath=’topology\newr-2000-0-20-0-25’
vnrnumber=2000
timeframe=2000
mysimulation=simulation(5,1000,SNpath,vnrpath,vnrnumber)
define VNE method
def my_vne_alg(vnr,sn):
v2sindex=[[v1,s1],[v2,s2],…] //nodes maping scheme
ve2seindex=[[s1,s2,…],[s1,s2,…],…..] //edges maping scheme
return True|False,v2sindex,ve2seindex
call your algorithm
mysimulation.init(timeframe)
mysimulation.simulation_run(EA_VNR.EA_VNR_alg,EA_VNR.EA_VNR_ALG_NAME)
draw result figure
mysimulation.draw()
Metadata
Release files for VNE_SIM 2.76
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| VNE_SIM-2.76-py3-none-any.whl | Python 3 | none | any | Details |
Release files / VNE_SIM-2.76-py3-none-any.whl
| Download URL | VNE_SIM-2.76-py3-none-any.whl |
|---|---|
| Size | 12.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
118cb55b448d165913682e8bf581cbaf557e329e3e4b0a5ca4e0638871434a55
|
|
BLAKE2b-256 checksum How to use checksums |
7e74e8d1079429cdc168024a72ce04bcbd28d9ea56db48a31e048c1705c47a31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|