Graph based modeling of P2P streaming systems