// Copyright (c) 2015 Kiel University and others.//// This program and the accompanying materials are made available under the// terms of the Eclipse Public License 2.0 which is available at// https://www.eclipse.org/legal/epl-2.0.//// SPDX-License-Identifier: EPL-2.0package p3orderimport// portsInNorthSouthEastWestOrder implements CrossMinUtil's deliberately// asymmetric iteration order. LNode's side views are clockwise; crossing// counting needs NORTH/EAST as-is and SOUTH/WEST reversed.func portsInNorthSouthEastWestOrder( *layered.LGraphArena,layered.LNodeID,layered.PortSide,) []layered.LPortID { := .NodePortSideView(, )switch {caselayered.NorthSide, layered.EastSide:returncaselayered.SouthSide, layered.WestSide: := append([]layered.LPortID(nil), ...)for , := 0, len()-1; < ; , = +1, -1 { [], [] = [], [] }returndefault:returnnil }}
The pages are generated with Goldsv0.8.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.