%% Extract Layer Graph of DAG Network
% Load a pretrained SqueezeNet network. You can use this trained network for classification and prediction.

net = squeezenet;

%
% To modify the network structure, first extract the structure of the DAG network by using layerGraph. You can then use the object functions of LayerGraph to modify the network architecture.

lgraph = layerGraph(net)

% Copyright 2018 The MathWorks, Inc.
%