File: ba_profile.py

package info (click to toggle)
python-pyrgg 1.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,212 kB
  • sloc: python: 1,592; makefile: 3
file content (17 lines) | stat: -rw-r--r-- 335 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# -*- coding: utf-8 -*-
"""Barabási-Albert Engine Profile."""
from pyrgg import *
import pyrgg.engines.barabasi_albert as ba_engine
import random

os.environ["PYRGG_TEST_MODE"] = "1"
random.seed(400)

ba_engine.gen_using(
    dimacs_maker,
    'profile',
    {
        'vertices': 10000,
        'attaching_edge_number': 500,
    }
)