On a graph based theoretical framework for computer assisted improvisation