  Integration of distributed energy resources (DERs) at a residential level has
given way to the development of a self-sufficient energy-resilient system and
peer-to-peer (P2P) energy trading at a community level. Several researchers
have developed models to implement energy trading in the P2P network with DERs
that enables prosumers to avail cost benefits. However, the impact of DERs and
P2P energy network on the system's resilience is not evaluated with a
quantifiable measure. In this work, we use the percolation threshold as a
measure to quantify energy resilience, which can be computed using complex
network. We consider a standard IEEE-123 node test feeder integrated with
renewable energy sources and partitioned into microgrids. The microgrid with
the highest percolation threshold value is considered for P2P energy trading
analysis. We use cooperative game theory to model the P2P energy trading so
that all prosumers take part rationally. The simulation is carried out using
time series data of houses with varying load profiles, solar generation, and
energy storage capacities. The results show 5.81\% of total cost benefit in a
year and 10.67\% improvement in the resilience of the system due to P2P energy
trading.
