def generateHubSequences(nCoinc=10, hubs=[2, 6], seqLength=[5, 6, 7], nSeq=100):
 coincList = range(nCoinc)
 for hub in hubs:
  coincList.remove(hub)
 seqList = []
 for i in xrange(nSeq):
  length = (random.choice(seqLength) - 1)
  seq = random.sample(coincList, length)
  seq.insert((length // 2), random.choice(hubs))
  seqList.append(seq)
 return seqList

def generateHubSequences ( nCoinc = 10 , hubs = [ 2 , 6 ] , seqLength = [ 5 , 6 , 7 ] , nSeq = 100 ) : coincList = range ( nCoinc ) for hub in hubs : coincList . remove ( hub ) seqList = [ ] for i in xrange ( nSeq ) : length = ( random . choice ( seqLength ) - 1 ) seq = random . sample ( coincList , length ) seq . insert ( ( length // 2 ) , random . choice ( hubs ) ) seqList . append ( seq ) return seqList
generate a set of hub sequences .