Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'represents': 0.05; 'compact': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'statistical': 0.09; 'jan': 0.12; 'random': 0.14; 'changes': 0.15; '4921': 0.16; 'disconnect': 0.16; 'pairs': 0.16; 'presume': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'situation.': 0.16; 'stop)': 0.16; 'subject:generation': 0.16; 'subject:random': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'connected': 0.24; 'sort': 0.25; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'properties': 0.29; 'gives': 0.31; 'url:wiki': 0.31; 'maintains': 0.31; 'node': 0.31; 'url:wikipedia': 0.31; 'supposed': 0.32; 'could': 0.34; 'problem.': 0.35; 'there': 0.35; 'explains': 0.36; 'subject:data': 0.36; 'url:org': 0.36; 'should': 0.36; 'seconds': 0.37; 'represent': 0.38; 'connections': 0.38; 'initially': 0.38; 'to:addr:python-list': 0.38; 'received:71': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'slowly': 0.60; 'real': 0.63; 'refer': 0.63; 'different': 0.65; 'modeling': 0.65; 'situation': 0.65; 'between': 0.67; 'steady': 0.68; 'paper': 0.75; 'algorithm,': 0.84; 'concept.': 0.84; 'received:fios.verizon.net': 0.84; 'snapshot': 0.84; 'subject:Network': 0.84; 'subject:World': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Small World Network model random data generation Date: Tue, 26 Aug 2014 13:37:39 -0400 References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-71-175-90-87.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 35 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1409074680 news.xs4all.nl 2968 [2001:888:2000:d::a6]:33869 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:77060 On 8/26/2014 6:16 AM, lavanya addepalli wrote: > How can i generate a random data that is identical to my realworld data I presume you mean same statistical properties. https://en.wikipedia.org/wiki/Small-world_network explains the difference between random networks and many real sw networks. > i am supposed to refer the attached paper By Watts and Strogatz https://en.wikipedia.org/wiki/Watts_and_Strogatz_Model gives a compact description of their algorithm, without proofs. > Real Data > node pairs and the time they spend together connected Your real data should have connect and disconnect (start and stop) times. The data below could represent a decay situation where all connections exist at time 0 and the time represents how long they last before breaking. Or a much different growth situation where there are initially no connections and they slowly accumulate. Or some sort of steady situation. > node node time in seconds > 4391 2814 16.0 > 4945 3545 386.0 > 5045 4921 63078.0 etc. The small-world-network concept is a static, or perhaps snapshot concept. Modeling link changes in a way that maintains the statistical properties is a harder problem. -- Terry Jan Reedy