def save_rw_doc(gexf_fh, coocurrence_corpus, walk_length):
    """Saves a shortest path graph doc with the extension .spp
	
	Parameters
	----------
	gexf_fh : str
		sdf
	cooccurrence_corpus : list
		list of lists containing cooccuring shortest paths 
		(ie those starting from the same starting node)
	walk_length : int
		length of the walk

	Returns
	-------
	None : None
		Saves the induced shortest path patterns into a graph document for the graph specified
		in the `gexf_fh` 

	"""
    open_fname = gexf_fh + '.rw' + str(walk_length)
    with open(open_fname, 'w') as fh:
        for spp_neighbourhood in coocurrence_corpus:
            sentence = str.join(' ', map(str, spp_neighbourhood))
            print(sentence, file=fh)
